//
//  MM_NetWorkTableTool.h
//  MallManage_IOS
//
//  Created by 张浩 on 2023/9/19.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MM_NetWorkTableTool : NSObject

- (instancetype)initWithDB:(FMDatabase*)db;

/* 插入缓存数据 **/
- (void)saveData:(NSData *)data url:(NSString *)url;
/* 读取缓存数据 **/
- (void)cachedDataWithUrl:(NSString *)url
           cacheDataBlock:(void(^)(NSData *))cacheBlock;
/* 删除数据 **/
- (void)deleteCacheWithUrl:(NSString *)url withPara:(NSDictionary *)para;

@end

NS_ASSUME_NONNULL_END
